package com.pactera.madp.cp.api.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @description cp_work_room (客户群表)
 */
@Data
@TableName("cp_work_room")
@ApiModel(value = "客户群")
@EqualsAndHashCode(callSuper = false)
public class WorkRoomEntity extends BaseEntity<WorkRoomEntity> {

    @TableId(type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "企业id")
    private Integer corpId;

    @ApiModelProperty(value = "客户群id")
    private String wxChatId;

    @ApiModelProperty(value = "客户群名称")
    private String name;

    @ApiModelProperty(value = "群主id（员工id）")
    private Integer ownerId;

    @ApiModelProperty(value = "群公告")
    private String notice;

    @ApiModelProperty(value = "客户群状态（0 - 正常 1 - 跟进人离职 2 - 离职继承中 3 - 离职继承完成）")
    private Integer status;

    @ApiModelProperty(value = "群成员上限")
    private Integer roomMax;

    @ApiModelProperty(value = "分组id")
    private Integer roomGroupId;

    @ApiModelProperty(value = "客户群状态")
    private Integer roomStatus;

    @ApiModelProperty(value = "群解散时间")
    private LocalDateTime dismissTime;

}
